package com.ilancuo.test;

/**
 *
 */
public class Divide {
    public static void main(String[] args) {
        System.out.println(1.0 / 0.0); //不会抛出异常，返回 INFINITY（Double.INFINITY）

        double x = Double.NaN;
        System.out.println(x == Double.NaN); //false
        System.out.println(Double.isNaN(x)); //true
    }
}
